#ifndef U2RECT_H
#define U2RECT_H

#include "U2PreRequest.h"


U2EG_NAMESPACE_BEGIN

class U2Rect
{
public:
	U2Rect(void);
	U2Rect(u2real x, u2real y, u2real w, u2real h);
	U2Rect(const U2Rect &rect);
	~U2Rect(void);

	inline void			setX(u2real x) {this->x = x;};
	inline u2real		getX(void) const {return x;};
	inline void			setY(u2real y) {this->y = y;};
	inline u2real		getY(void) const {return y;};
	inline void			setW(u2real w) {this->w = w;};
	inline u2real		getW(void) const {return w;};
	inline void			setH(u2real h) {this->h = h;};
	inline u2real		getH(void) const {return h;};

public:
	u2real			x;
	u2real			y;
	u2real			w;
	u2real			h;
};

U2EG_NAMESPACE_END

#endif // U2RECT_H